/*
 * @Description:
 * @Author: charles
 * @Date: 2020-10-26 16:39:14
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-06 15:31:20
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [{
        path: "/",
        redirect: "/home"
    },
    {
        path: '/home',
        name: 'Home',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Home.vue')
    }, {
        path: '/guonei',
        name: 'Guonei',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Guonei.vue')
    }, {
        path: '/guoji',
        name: 'Guoji',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Guoji.vue')
    }, {
        path: '/shehui',
        name: 'Shehui',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Shehui.vue')
    }, {
        path: '/fazhi',
        name: 'Fazhi',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Fazhi.vue')
    }, {
        path: '/kuaikan',
        name: 'Kuaikan',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Kuaikan.vue')
    },
    {
        path: '/article',
        name: 'Article',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/Article.vue')
    },
    {
        path: '/head',
        name: 'Head',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/components/Head.vue')
    },
    {
        path: '/foot',
        name: 'Foot',
        meta: {
            scrollToTop: true
        },
        component: () =>
            import ('../views/components/Foot.vue')
    },
]

const router = new VueRouter({
    mode: 'hash',
    base: process.env.BASE_URL,
    routes
})

export default router